pub fn odd_fibnacci_sum(threshold: u32) -> u32 {
    let mut s: [u32; 3]=[0,1,1];
    let mut sum: u32=1;
    while s[2]<threshold{
        if s[2]%2==1{
            sum+=s[2];
        }
        s[0]=s[1];
        s[1]=s[2];
        s[2]=s[0]+s[1];
    }
    sum
}
